import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/audit-flow-preset/list',
    method: 'get',
    params
  })
}

export function getInfo(params) {
  return request({
    url: '/audit-flow-preset/info',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: '/audit-flow-preset/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/audit-flow-preset/edit',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: '/audit-flow-preset/remove/'+data,
    method: 'delete',
    data
  })
}

export function audit(data) {
  return request({
    url: '/audit-manager/audit',
    method: 'post',
    data
  })
}